<?php

namespace App\Http\Controllers\home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use DB;

class UserspaceController extends Controller
{
    public function index()
	{
		$list=DB::table('type')->get();
		$config=DB::table('config')->get();
        $num=DB::table('order')->where('uid',session()->get('homeuser')->id)->count();
        $order=DB::table('order')->where('uid',session()->get('homeuser')->id)->get();
        return view('home.user.space',['config'=>$config,'list'=>$list,'order'=>$order,'num'=>$num]);
	}
}
